package com.gxa.meiye.admin.platform.service.impl;

import com.gxa.meiye.admin.platform.mapper.ServicemanageMapper;
import com.gxa.meiye.admin.platform.pojo.vo.ProjectMationVo;
import com.gxa.meiye.admin.platform.pojo.vo.ServiceManageVo;
import com.gxa.meiye.admin.platform.pojo.vo.WordManageVo;
import com.gxa.meiye.admin.platform.service.ServiceManageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ServiceManageServiceImpl implements ServiceManageService {

    @Resource
    private ServicemanageMapper servicemanageMapper;

    @Override
    public List<ServiceManageVo> queryAll() {
        List<ServiceManageVo> serviceManageVos = this.servicemanageMapper.queryAll();
        return serviceManageVos;
    }

    @Override
    public List<ServiceManageVo> selectAll(Integer status, String tempall) {
        List<ServiceManageVo> serviceManageVos = this.servicemanageMapper.selectAll(status, tempall);
        return serviceManageVos;
    }

    @Override
    public List<ProjectMationVo> queryProject(Integer id) {
        List<ProjectMationVo> projectMationVos = this.servicemanageMapper.queryProject(id);
        return projectMationVos;
    }

    @Override
    public void updateStatus(Integer id) {
        this.servicemanageMapper.updateStatus(id);
    }

    @Override
    public void updateStatus1(Integer id) {
        this.servicemanageMapper.updateStatus1(id);
    }

    @Override
    public List<WordManageVo> querywordAll() {
        List<WordManageVo> wordManageVos = this.servicemanageMapper.querywordAll();
        return wordManageVos;
    }

    @Override
    public void addWord(String word, String time) {
        this.servicemanageMapper.addWord(word,time);
    }

    @Override
    public List<WordManageVo> selectWord(String word) {
        List<WordManageVo> wordManageVos = this.servicemanageMapper.selectWord(word);
        return wordManageVos;
    }

    @Override
    public void updateWord(Integer id, String word) {
        this.servicemanageMapper.updateWord(id,word);
    }

    @Override
    public void deleteWord(Integer id) {
        this.servicemanageMapper.deleteWord(id);
    }
}
